package ar.edu.caece.compiler.error;

import ar.edu.caece.compiler.model.Position;
import ar.edu.caece.compiler.symbol.Symbol;

public class Error {

  private Symbol received;
  
  private Position position;
  
  private String description;

  public Error(Symbol received, Position position, String description) {
    super();
    this.received = received;
    this.position = position;
    this.description = description;
  }

  @Override
  public String toString() {
    return description;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public Symbol getReceived() {
    return received;
  }

  public void setReceived(Symbol received) {
    this.received = received;
  }

  public Position getPosition() {
    return position;
  }

  public void setPosition(Position position) {
    this.position = position;
  }
}